import request from '@/utils/request'

// 查询机房列表
export function listCenter(query) {
    return request({
        url: '/ar_check/center/list',
        method: 'get',
        params: query
    })
}

// 查询机房列表All
export const listCenterAll = () => request('/ar_check/center/listAll')

// 查询机房详细
export function getCenter(roomId) {
    return request({
        url: '/ar_check/center/' + roomId,
        method: 'get'
    })
}

// 新增机房
export function addCenter(data) {
    return request({
        url: '/ar_check/center',
        method: 'post',
        data: data
    })
}

// 修改机房
export function updateCenter(data) {
    return request({
        url: '/ar_check/center',
        method: 'put',
        data: data
    })
}

// 删除机房
export function delCenter(roomId) {
    return request({
        url: '/ar_check/center/' + roomId,
        method: 'delete'
    })
}
